<!--{*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *}-->
 
<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="form1" id="form1" method="post" action="">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="list_name" value="">

<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="nodata">
<p>
データベースのバックアップを行います。<br />
テンプレートファイル等はバックアップされません。
</p>
</div>



<div class="menuclass">
<dl>
<dt>バックアップ名<span class="red"> *</span></dt>
<dd>
	<span class="red12"><!--{$arrErr.bkup_name}--></span>
	<input type="text" name="bkup_name" value="<!--{$arrForm.bkup_name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="60" class="box60" style="<!--{if $arrErr.bkup_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}--> ime-mode: disabled;" />
	<span class="red"> （上限<!--{$smarty.const.STEXT_LEN}-->文字）</span>
</dd>

<dt>バックアップメモ</dt>
<dd>
	<span class="red12"><!--{$arrErr.bkup_memo}--></span>
	<textarea name="bkup_memo" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" cols="60" rows="5" class="area60" style="<!--{if $arrErr.bkup_memo != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" ><!--{$arrForm.bkup_memo|escape}--></textarea>
	<span class="red"> （上限<!--{$smarty.const.MTEXT_LEN}-->文字）</span>
</dd>
</dl>
</div>



<div class="btn_box">
<input type="button" name="cre_bkup" value="バックアップデータを作成する" onClick="document.body.style.cursor = 'wait'; form1.mode.value='bkup'; submit();" />
</div>




<!--{* 一覧が存在する場合のみ表示する *}-->
<!--{if count($arrBkupList) > 0 }-->
<h3>バックアップ一覧</h3>

<div class="menuclass">
<table summary="バックアップ一覧">
<tr>
	<th>バックアップ名</th><th>バックアップメモ</th><th>作成日</th><th>リストア</th><th>ダウンロード</th><th>削除</th>
</tr>
<!--{section name=cnt loop=$arrBkupList}-->
<tr>
	<td><!--{$arrBkupList[cnt].bkup_name}--></td>
	<td><!--{$arrBkupList[cnt].bkup_memo}--></td>
	<td align="center"><!--{$arrBkupList[cnt].create_date|sfCutString:19:true:false}--></td>
	<td align="center">
	<a href="#" onclick="document.body.style.cursor = 'wait'; fnModeSubmit('restore','list_name','<!--{$arrBkupList[cnt].bkup_name}-->');">restore</a></td>
	<td align="center">
	<a href="#" onclick="fnModeSubmit('download','list_name','<!--{$arrBkupList[cnt].bkup_name}-->');">download</a></td>
	<td align="center">
	<a href="#" onclick="fnModeSubmit('delete','list_name','<!--{$arrBkupList[cnt].bkup_name}-->');">delete</a></td>
</tr>
<!--{/section}-->
</table>
</div>
<!--{/if}-->



<!--{if $restore_msg != ""}-->
<h3>実行結果</h3>
<div class="menuclass">
<dl>
<dt><!--{if $restore_err == false}-->
	<input type="button" name="restore_config" value="テーブル構成を無視してリストアする" onClick="document.body.style.cursor = 'wait'; form1.mode.value='restore_config'; form1.list_name.value='<!--{$restore_name}-->'; submit();" /><br />
	<!--{/if}-->
</dt>
<dd>
	<!--{$restore_msg}-->
</dd>
</dl>
</div>
<!--{/if}-->


</form>
</div>
</div>
